<%-- 
    Document   : index
    Created on : Apr 6, 2011, 7:07:03 AM
    Author     : Muhammad Anis
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Chat</title>
        <link rel="stylesheet" href="css/style.css"/>
    </head>
    <body>
        <div id="main_wrapper">
            <div id="wrapper">
                <div id="login">
                    <div id="welcome">Welcome To Chatting Area</div>
                    <div id="formlogin">
                        <form action="functions/process.jsp?task=login" method="post">
                            <label for="username">Username: </label><input type="text" name="username" id="username"/>
                            <label for="password">Password: </label><input type="password" name="password" id="password"/>
                            <input type="submit" class="button" value=""/>
                        </form>
                    </div>
                </div>
                <div id="content">
                    <div id="gambar">                        
                    </div>
                    <div id="register">
                        <div id="message">
                            <%
                                        String message = request.getParameter("task");
                                        if (message != null) {
                                            if (message.equals("register")) {
                                                out.print("Thanks For registering..");
                                            }
                                        }
                            %>
                        </div>
                        <h2>Register</h2><hr/>
                        <form id="form_register" action="functions/process.jsp?task=register" method="post">
                            <table>
                                <tr>
                                    <td>
                                        Your Name
                                    </td>
                                    <td>
                                        :&nbsp; <input type="text" name="name_reg" id="name_reg"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Username
                                    </td>
                                    <td>
                                        :&nbsp; <input type="text" name="username_reg" id="username_reg"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Password
                                    </td>
                                    <td>
                                        :&nbsp; <input type="password" name="password_reg" id="password_reg"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Email
                                    </td>
                                    <td>
                                        :&nbsp; <input type="text" name="email_reg" id="email_reg"/>
                                    </td>
                                </tr>
                            </table>
                            <input type="submit" class="button" value=""/>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
